package de.hska.kundenverwaltung.db;

import static de.hska.kundenverwaltung.db.Kunde.PRIVATKUNDE;

import java.util.Date;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Inheritance;

@Entity
@Inheritance
@DiscriminatorValue(PRIVATKUNDE)
public final class Privatkunde extends Kunde {
	private static final long serialVersionUID = -1783340753647408724L;

	public Privatkunde() {
		super();
	}
	
	public Privatkunde(String nachname, String vorname, String email, Date seit) {
		super(nachname, vorname, email, seit);
	}
	
	@Override
	public String getArt() {
		return PRIVATKUNDE;
	}
	
	@Override
	public String toString() {
		return "{" + super.toString() + "}";
	}
}
